package com.sms.service.impl;

import com.sms.dao.ClassStudyMapper;
import com.sms.pojo.ClassStudy;
import com.sms.pojo.StudentInfo;
import com.sms.service.ClassStudyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lhj
 */
@Service
public class ClassStudyServiceImpl implements ClassStudyService {
    @Autowired
    private ClassStudyMapper classStudyMapper;

    @Override
    public List<ClassStudy> selectClassStudyAll() {
        List<ClassStudy> classStudyList = classStudyMapper.selectClassStudyAll();
        return classStudyList;
    }

    @Override
    public ClassStudy selectClassStudyOne(int classId) {
        ClassStudy classStudy = classStudyMapper.selectClassStudyOne(classId);
        return classStudy;
    }

    @Override
    public List<StudentInfo> selectStudentClass(int classId) {
        return classStudyMapper.selectStudentClass(classId);
    }
}
